package com.hkts.naturalgas.curvesettings.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author yck
 * @since 2021-10-12
 */
public class CurveState extends Model<CurveState> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;
    /**
     * 车间id
     */
    private String workShopId;
    /**
     * 系统曲线状态，1：启动 2停止 3正在切换 4切换完成
     */
    private String systemCurveState;
    /**
     * 系统切换时间 单位为分钟
     */
    private Integer switchingTime;
    /**
     * 系统切换开始时间
     */
    private LocalDateTime switchBeginTime;




    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getWorkShopId() {
        return workShopId;
    }

    public void setWorkShopId(String workShopId) {
        this.workShopId = workShopId;
    }

    public String getSystemCurveState() {
        return systemCurveState;
    }

    public void setSystemCurveState(String systemCurveState) {
        this.systemCurveState = systemCurveState;
    }

    public Integer getSwitchingTime() {
        return
                switchingTime;
    }

    public void setSwitchingTime(Integer
                                         switchingTime) {
        this.switchingTime = switchingTime;
    }

    public LocalDateTime getSwitchBeginTime() {
        return switchBeginTime;
    }

    public void setSwitchBeginTime(LocalDateTime switchBeginTime) {
        this.switchBeginTime = switchBeginTime;
    }

    public static final String ID = "id";

    public static final String WORK_SHOP_ID = "work_shop_id";

    public static final String SYSTEM_CURVE_STATE = "system_curve_state";

    public static final String
            SWITCHING_TIME = "switching_time";

    public static final String SWITCH_BEGIN_TIME = "switch_begin_time";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CurveState{" +
                ", id=" + id +
                ", workShopId=" + workShopId +
                ", systemCurveState=" + systemCurveState +
                ", switchingTime=" + switchingTime +
                ", switchBeginTime=" + switchBeginTime +
                "}";
    }
}
